<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>

<%@ page import="worksheet.factory.security.*"%>

<%
	String pwdstring = "";
	String validuser = "teja/helloteja is ";
	String exmsg = "NONE";
	String exdata = "NONE";

	try {
		boolean userathenticity = UserFactory.getInstance().isValidUser("teja", "helloteja");	
		if(userathenticity) {
			validuser += " VALID";
		}
		else {
			validuser += " INVALID";
		}

	}
	catch(Exception ex) {
		exmsg = ex.getMessage();
		exdata = ex.toString();
	}
	
	out.println("PWD string: " + pwdstring + "<br>");
	out.println("Validuser: " + validuser + "<br>");
	out.println("Ex msg: " + exmsg + "<br>");
	out.println("Ex Data: " + exdata + "<br>");
 %>
 
 
